<#if parameters.page??>
<#assign page = parameters.page>
<#if parameters.pageRange??>
<#assign pageRange = parameters.pageRange>
<#if parameters.param??>
	<#assign param=parameters.param>
</#if>
<#assign pageBtw=5>
				<div id="page" class="pg" style="align:center">
					<script>
						function go(page){
							if(page<1)
								page=1;
							if(page>${page.totalPageCount})
								page=${page.totalPageCount};
							var param="";
							<#if param?exists>
								param="?${param}&";
							<#else>
								param="?";
							</#if>
							if(page>${pageRange}){
								window.location.href=param+"currentPage="+page+"&pageRange="+${pageRange+pageBtw};
							}else{
								if(${pageRange}-page>=${pageBtw}){
									window.location.href=param+"currentPage="+page+"&pageRange="+${pageRange-pageBtw};
								}else{
									window.location.href=param+"currentPage="+page+"&pageRange="+${pageRange};
								}
							}
						}
						function goNext(pageNo){
							var temp=pageNo%${pageBtw};
							if(temp==0){
								go(pageNo+1);
							}else{
								var c=pageNo+${pageBtw}-temp+1;
								go(c);
							}
						}
						function goFirst(pageNo){
							var temp=pageNo%${pageBtw};
							var c=pageNo-${pageBtw}-temp+1;
							go(c);
						}
						function goPage(){
							var value=$('#toPage').val();
							if(!(/^\d+$/.test(value))){
								alert("只能输入数字");
								return;
							}
							if(value>${page.totalPageCount}){
								value=${page.totalPageCount};
							}
							if(value<1)
								value=1;
							go(value);
						}
					</script>
						<#if page?exists>
							<#if page.totalPageCount lte pageBtw>
								<#list 1..page.totalPageCount as a>
									<#if page.currentPageNo==a>
										<a href="javascript:go(${a});" class="sliverbutton"><span><b>${a}</b></span></a>
									<#else>
										<a href="javascript:go(${a});">[${a}]</a>
									</#if>
									
								</#list>
							<#else>
								<#if page.currentPageNo%pageBtw==0>
									<#assign a=(((page.currentPageNo-1)/pageBtw)?floor)*pageBtw+1 >
								<#else>
									<#assign a=((page.currentPageNo/pageBtw)?floor)*pageBtw+1 >
								</#if>
								<#if a-pageBtw gt 0>
									<a href="javascript:goFirst(${page.currentPageNo});" class="sliverbutton"><span><<</span></a>
								</#if>
								<#if pageRange<=page.totalPageCount>
									<#assign last=pageRange>
								<#else>
									<#assign last=page.totalPageCount>
								</#if>
								<#list (pageRange-(pageBtw-1))..last as a>
									<#if page.currentPageNo==a>
										<a href="javascript:go(${a});" class="sliverbutton"><span><b>${a}</b></span></a>
									<#else>
										<a href="javascript:go(${a});">[${a}]</a>
									</#if>
								</#list>
								<#if a+pageBtw lte page.totalPageCount>
									<a href="javascript:goNext(${page.currentPageNo});" class="sliverbutton"><span>>></span></a>
								</#if>
								转到<input class="inputText" type="text" id="toPage" name="" value="" style="width:20px;margin:0 2px;"/>页
									<a class="minibutton" href="javascript:goPage();"><span>确定</span></a>
							</#if>
							共 ${page.totalPageCount} 页
						</#if>
						</div>

  </#if>
 </#if>
